package com.yunhe.mybatis.dto;

import java.util.List;

public class Pageable {
    private List<?>  rows;  //当前页数据
    private int count;  //总记录数
    private int pageCount;  //页数
    private int current;  //当前页
    private int size;  //每页大小

    public Pageable() {
    }

    public Pageable(List<?> rows, int count) {
        this.rows = rows;
        this.count = count;
    }

    public List<?> getRows() {
        return rows;
    }

    public void setRows(List<?> rows) {
        this.rows = rows;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }
}
